﻿
namespace Go
{
	public class Move
	{
		public Point point;
		public bool is_play;
		public bool is_pass;
		public bool is_resign;
		public Move(Point point, bool is_pass = false, bool is_resign = false)
		{
			this.point = point;
			this.is_play = (point != Point.None);
			this.is_pass = is_pass;
			this.is_resign = is_resign;
		}
		public static Move play(Point point)
		{
			return new Move(point);
		}
		public static Move pass_turn { get { return new Move(Point.None, true); } }
		public static Move resign { get { return new Move(Point.None, false, true); } }

	}
}